{include file="admin/public/header" /}
<div class="aw-content-wrap">
    <form action="{:url('ajax/db/add')}"  class="cmzForm" method="post" onsubmit="return false">
    <div class="mod">
      <div class="ibox-title ">
            <h3>
            <a class="label label-primary pull-right " id="admin" href="/plus/caiji/index/index">返回列表</a>
                <span class="pull-left"><?php e('站点信息'); ?></span>


            </h3>
        </div>
        <div class="tab-content mod-content">
            <table class="table table-striped">

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">标题:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="title" class="form-control" type="text" value="{$title}"/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">所属类型:</span>
                            <div class="col-sm-5 col-xs-8">
                               <select name="type" id="" class="form-control">
                                   <option {if condition="$type=='question'"}selected="selected"{/if} value="question">问题</option>
                                   <option {if condition="$type=='article'"}selected="selected"{/if} value="article">文章</option>
                               </select>
                            </div>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">所属分类:</span>
                            <div class="col-sm-5 col-xs-8">
                               <select name="category_id" id="" class="form-control">
                               {volist name="category" id="v"}
                                   <option {if condition="$category_id==$v['id']"}selected="selected"{/if} value="{$v.id}">{$v.title}</option>
                               {/volist}
                                   
                               </select>
                            </div>
                        </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">采集的URL:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="url" class="form-control" type="text" value="{$url}"/>
                            </div>
                        </div>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">id选择范围:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$star_id}" name="star_id" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                    <input type="text" class="form-control mod-data" value="{$end_id}" name="end_id" />
                                    <i class="icon icon-date"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>

               <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">回答用户ID的范围:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$star_uid}" name="star_uid" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                    <input type="text" class="form-control mod-data" value="{$end_uid}" name="end_uid" />
                                    <i class="icon icon-date"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>
             
                 <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">问题用户发起时间的范围:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$creat_star_time}" name="creat_star_time" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                    <input type="text" class="form-control mod-data" value="{$creat_end_time}" name="creat_end_time" />
                                    <i class="icon icon-date"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>

                 <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">用户回答时间的范围:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$answer_star_time}" name="answer_star_time" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                    <input type="text" class="form-control mod-data" value="{$answer_end_time}" name="answer_end_time" />
                                    <i class="icon icon-date"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>
             <!--     <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">选择器选择的范围:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input name="choose" class="form-control" type="text" value="{$choose}"/>
                            </div>
                        </div>
                    </td>
                </tr> -->
               
                
               <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">标题选择器和要采集的属性:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$title_choose}" name="title_choose" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                <select name="title_attr" class="form-control mod-data" id="">
                                    <option {if condition="$title_attr=='text'"} selected="selected"{/if} value="text">text</option>
                                    <option {if condition="$title_attr=='html'"} selected="selected"{/if} value="html">html</option>
                                    <option {if condition="$title_attr=='img'"} selected="selected"{/if} value="img">img</option>
                                    <option {if condition="$title_attr=='link'"} selected="selected"{/if} value="link">link</option>
                                </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">TAG选择器和要采集的属性:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$tag_choose}" name="tag_choose" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                <select name="tag_attr" class="form-control mod-data" id="">
                                    <option {if condition="$tag_attr=='text'"} selected="selected"{/if} value="text">text</option>
                                    <option {if condition="$tag_attr=='html'"} selected="selected"{/if} value="html">html</option>
                                    <option {if condition="$tag_attr=='img'"} selected="selected"{/if} value="img">img</option>
                                    <option {if condition="$tag_attr=='link'"} selected="selected"{/if} value="link">link</option>
                                </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>
                  <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">内容选择器和要采集的属性:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$content_choose}" name="content_choose" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                  
                                   <select name="content_attr" class="form-control mod-data" id="">
                                    <option {if condition="$content_attr=='text'"}selected="selected"{/if} value="text">text</option>
                                    <option {if condition="$content_attr=='html'"}selected="selected"{/if} value="html">html</option>
                                    <option {if condition="$content_attr=='img'"}selected="selected"{/if} value="img">img</option>
                                    <option {if condition="$content_attr=='link'"}selected="selected"{/if} value="link">link</option>
                                </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <div class="form-group">
                        <label class="col-sm-4 col-xs-3 control-label">回答选择器和要采集的属性:</label>

                        <div class="col-sm-5 col-xs-8">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control mod-data" value="{$answer_choose}" name="answer_choose" />
                                    <i class="icon icon-date"></i>
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                   
                                <select name="answer_attr" class="form-control" >
                                    <option{if condition="$answer_attr=='text'"} selected="selected" {/if} value="text">text</option>
                                    <option{if condition="$answer_attr=='html'"} selected="selected" {/if} value="html">html</option>
                                    <option{if condition="$answer_attr=='img'"} selected="selected" {/if} value="img">img</option>
                                    <option{if condition="$answer_attr=='link'"} selected="selected" {/if} value="link">link</option>
                                </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    </td>
                </tr>
                
            </table>
        </div>
        <div class="hr-line-dashed"></div>
       <div class="form-group">
        <div class="col-sm-4 col-sm-offset-2">
         <a href="javascript:;" class="btn btn-sm btn-primary pull-left m-t-n-xs cmzedit" style="margin-left:20px;,margin-top:20px; " table="{:encode('tool_caiji')}" where="{if condition='$id>0'}{:encode('id='.$id)}{/if}" returnurl="/plus/caiji/index/index"><strong>提交</strong></a>
        </div>
    </div>
    </div>
    </form>
</div>
{include file="admin/public/footer" /}